//字典管理模块API
import axios from '../axios'

//保存字典
export const save = (data) => {
  return axios({
    url: '/dict/save',
    method: 'post',
    data
  })
};

//删除字典
export const batchDelete = (data) => {
  return axios({
    url: '/dict/delete',
    method: 'post',
    data
  })
};

//分页查询
export const findPage = (data) => {
  return axios({
    url: '/dict/findPage',
    method: 'post',
    data
  })
};


//根据标签名模糊查询
export const findByLabel = (param) => {
  return axios({
    url: '/dict/findByLabel',
    method: 'get',
    param
  })
};
